package com.graduate.cec.mapper;

import com.graduate.cec.pojo.dto.AdminSimplePageDTO;
import com.graduate.cec.pojo.entity.Admin;
import com.graduate.cec.pojo.entity.AdminExample;
import java.util.List;

import com.graduate.cec.pojo.vo.AdminLoginVO;
import com.graduate.cec.pojo.vo.AdminSimpleVO;
import com.graduate.cec.pojo.vo.AdminVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AdminMapper {
    long countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<AdminVO> selectByExample(AdminSimplePageDTO adminSimplePageDTO);

    Admin selectByPrimaryKey(Long id);

    AdminLoginVO selectLoginInfoByPhone(String phone);

    AdminSimpleVO selectSimplePersonal(String phone);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}